package org.acghub.mtdb.common;

import org.acghub.mtdb.util.ElementHelper;
import org.w3c.dom.Element;

import java.util.Set;

/**
 * @author zhouhe
 */
public class Mtdb extends Naming implements Meta {

    public Mtdb(Root parent, Element self) throws Exception {
        super(parent, self);
    }

    @Override
    protected void initialize(Element self) throws Exception {
        ElementHelper eh = new ElementHelper(self);
        eh.warnUnused("name", "comment");
    }

    @Override
    public Set<Compilable> compile() {
        return this.getRoot().compile();
    }
}
